<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .b {
            color: deepskyblue;
        }

        .p {
            color: deeppink;
        }
    </style>
</head>

<body>
    <div id="qs"></div>
    <script src="./src/react.js"></script>
    <script src="./src/react-dom.js"></script>
    <script src="./src/babel.js"></script>
    <script type="text/babel">
        let flag = true
        let d
        if (flag == true) {
            d = "p"
        } else {
            d = "b"
        }
        ReactDOM.render(
            <div>
                <h1 style={{ color: 'red', background: 'pink' }}>錦木千束</h1>
                <h1 className="b">安济知佳</h1>
                <h1 className={flag == true ? "p" : "b"}>电子龙无限</h1>
                <h1 className={d} style={{ background: "black" }}>
                    {flag == true ? "逮不动" : "逮虾户"}
                </h1>
            </div>
            ,
            document.getElementById('qs')
        )
    </script>
</body>

</html>